<?php
/**
 * Project: ShopWorx- making your life easier
 *   
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * @Author Chris 
 * @File testapp.php
 * @Version 1.0.0
 * @Copyright 2008 Shopworx (c) 
 * @Year 2008
 * @access Public 
 */
 include 'common.php';

        Class Testapp extends Application
        {
          function run()
          {
            // Display a debug message if debug mode is on.
            $this->debug("hello world");
            echo "hello world";
          }
         }

        $test = new Testapp(
                             array(
                                   'app_name'        => 'Test',
                                   'app_version'     => '1.0.0',
                                   'app_type'        => 'WEB',
                                   'app_db_url'      => $db_url,
                                   'app_auto_connect'=> true,
                                   'app_auto_authorize'=> false,
                                   'app_auto_chk_session'=> false,
                                   'app_debugger'    => true
                                   )
                             );
       $test->buffer_debugging();
       $test->debug("<i><b>Server :</b> </i><font color=\"#000\">&ldquo;" . $_SERVER['SERVER_NAME'] .
    '&rdquo;</font>');
$test->debug("<i><b>Application version :</b> </i><font color=\"#000\">&ldquo;" .
    $test->get_version() . '&rdquo;</font>');
$test->debug("<i><b>App directory : </i></b><font color=\"#000\">" . FRAMEWORK_DIR .
    "</font>");
       $test->run();
       $test->dump_debuginfo();
